Skip to content

Conversation

@rameshkunasi
Copy link
Contributor

Added Dynamic_Update_Slice operator changes.

BUG=fixes #3217

@rameshkunasi rameshkunasi requested a review from a team as a code owner October 28, 2025 12:17
Copy link
Collaborator

@veblush veblush left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks! I just have a few small comments to address.

output_data);
}

TF_LITE_MICRO_TEST(DynamicUpdateSliceOpTestBoundaryTest) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the purpose of this test? How is this different from DynamicUpdateSliceOpTestSimpleFloat?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is same as DynamicUpdateSliceOpTestSimpleFloat except the indices. Here in this test indices used are corner case

Comment on lines 55 to 57
if (current_dim == max_dims) {
return kTfLiteOk;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is unreachable?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will, because it will be called by increasing current_dim count in recursively

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Porting Dynamic_Update_Slice operator from TFLite to TFLM

4 participants